package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.mapper.HotesMapper;
import com.ruoyi.system.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HotelOrdersMapper;
import com.ruoyi.system.domain.HotelOrders;
import com.ruoyi.system.service.IHotelOrdersService;

/**
 * 酒店订单模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-21
 */
@Service
public class HotelOrdersServiceImpl implements IHotelOrdersService 
{
    @Autowired
    private HotelOrdersMapper hotelOrdersMapper;

    @Autowired
    UsersMapper usersMapper;
    @Autowired
    HotesMapper hotesMapper;

    /**
     * 查询酒店订单模块
     * 
     * @param hotelOrderid 酒店订单模块主键
     * @return 酒店订单模块
     */
    @Override
    public HotelOrders selectHotelOrdersByHotelOrderid(Long hotelOrderid)
    {
        return hotelOrdersMapper.selectHotelOrdersByHotelOrderid(hotelOrderid);
    }

    /**
     * 查询酒店订单模块列表
     * 
     * @param hotelOrders 酒店订单模块
     * @return 酒店订单模块
     */
    @Override
    public List<HotelOrders> selectHotelOrdersList(HotelOrders hotelOrders)
    {
        return hotelOrdersMapper.selectHotelOrdersList(hotelOrders);
    }

    /**
     * 新增酒店订单模块
     * 
     * @param hotelOrders 酒店订单模块
     * @return 结果
     */
    @Override
    public int insertHotelOrders(HotelOrders hotelOrders)
    {
        return hotelOrdersMapper.insertHotelOrders(hotelOrders);
    }

    /**
     * 修改酒店订单模块
     * 
     * @param hotelOrders 酒店订单模块
     * @return 结果
     */
    @Override
    public int updateHotelOrders(HotelOrders hotelOrders)
    {

        return hotelOrdersMapper.updateHotelOrders(hotelOrders);
    }

    /**
     * 批量删除酒店订单模块
     * 
     * @param hotelOrderids 需要删除的酒店订单模块主键
     * @return 结果
     */
    @Override
    public int deleteHotelOrdersByHotelOrderids(Long[] hotelOrderids)
    {
        return hotelOrdersMapper.deleteHotelOrdersByHotelOrderids(hotelOrderids);
    }

    /**
     * 删除酒店订单模块信息
     * 
     * @param hotelOrderid 酒店订单模块主键
     * @return 结果
     */
    @Override
    public int deleteHotelOrdersByHotelOrderid(Long hotelOrderid)
    {
        return hotelOrdersMapper.deleteHotelOrdersByHotelOrderid(hotelOrderid);
    }
}
